
<div class="mine">
    <div class="banner">
        <a href="html/set.html"><span class="fa fa-cog set"></span></a>
    </div>
    <div class="xiaoxi">
        <span><span class="fa fa-bell-o font"></span> 我的消息 <span class="num">1</span></span><span><span class="fa fa-angle-right"></span></span>
    </div>
    <div class="article">
        <div class="like" id="like">
            <div class="like1">
                <span>喜欢的收藏品</span>
            </div>
            <div class="like2">
                <span>喜欢的攻略</span>
            </div>
        </div>
        <div class="list" id="list">
            <ul>
                <li>
                    <div class="name">
                        <img src="img/ciqiglass.png" alt="" />
                        <div>
                            <h3>瓷器水杯</h3>
                            <span>2个</span>
                        </div>
                    </div>
                    <i class="fa fa-angle-right"></i>
                </li>
                <li>
                    <div class="name">
                        <img src="img/mu.png" alt="" />
                        <div>
                            <h3>木</h3>
                            <span>2个</span>
                        </div>
                    </div>
                    <i class="fa fa-angle-right"></i>
                </li>
            </ul>
            <ul>
                <li>
                    <div class="name">
                        <img src="img/mu.png" alt="" />
                        <div>
                            <h3>木</h3>
                            <span>2个</span>
                        </div>
                    </div>
                    <i class="fa fa-angle-right"></i>
                </li>
                <li>
                    <div class="name">
                        <img src="img/ciqiglass.png" alt="" />
                        <div>
                            <h3>陶瓷水杯</h3>
                            <span>2个</span>
                        </div>
                    </div>
                    <i class="fa fa-angle-right"></i>
                </li>
            </ul>
        </div>
    </div>

</div>
<script>
    function run(a, b) {
        a.click (function () {
            b.show().siblings().hide();
        });
    }
    var x=$("#list").children();
    var y=$("#like").children();
    x.each(function(i){
        run(y.eq(i), x.eq(i));
    });
</script>

